package lagou.homework.lagou_homework_rocketmq.rocketmq;

import lagou.homework.lagou_homework_rocketmq.base.BaseTest;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

public class testRocketmq extends BaseTest {
    @Autowired
    private RocketMQTemplate rocketMQTemplate;

    @Test
    public void testSendMsg(){
        rocketMQTemplate.convertAndSend("springboot-rocketmq","hello rocketmq!");
    }
}
